package com.shensi.appCollect.dao;

import com.shensi.appCollect.pojo.CouponDeduction;
import com.shensi.appCollect.pojo.CouponUser;
import com.shensi.appCollect.pojo.CouponUserGiveCount;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @date 2023/10/30
 */
public interface CouponUserMapper {

    int selectUserIssueGiveCount(Map<String, String> paramMap);
    /***
     * 用户进入领取页面的次数
     * @param couponUserGiveCount
     * @return
     */
    CouponUserGiveCount selectCouponUserGiveCount(CouponUserGiveCount couponUserGiveCount);

    int updateCouponUserGiveCount(CouponUserGiveCount couponUserGiveCount);

    int insertCouponUserGiveCount(CouponUserGiveCount couponUserGiveCount);

    int saveBatchCouponUser(@Param("couponUsersList") List<CouponUser> couponUsersList);

    int updateBatchCouponTemplate(CouponDeduction couponDeduction);

}
